package com.newedu.equipmgr.entity;

/**
 * 维修bean
 */
public class MaintenanceInfo {
    private int id;

    private String maintenanceSN;//报修单号
    private int areaID;//区域id

    private int equipmentID;//设备id

    private int reportUserID;//提交用户id

    private String reportContent;//故障描述

    private int imageURL;//图片地址

    private int location;//具体位置

    private char status;//表单状态 0 报修 1 受理  2 完成

    private String startTime;//报修时间

    private int maintenanceUserID;//指派人员

    private String acceptTime;//受理时间

    private String maintenanceContent;//维修描述

    private String endTime;//完成时间


    //没必要涉及所有的字段的数据库操作，可另行实现构造方法

    public MaintenanceInfo(int id, String maintenanceSN, int areaID, int equipmentID, int reportUserID, String reportContent, int imageURL, int location, char status, String startTime, int maintenanceUserID, String acceptTime, String maintenanceContent, String endTime) {
        this.id = id;
        this.maintenanceSN = maintenanceSN;
        this.areaID = areaID;
        this.equipmentID = equipmentID;
        this.reportUserID = reportUserID;
        this.reportContent = reportContent;
        this.imageURL = imageURL;
        this.location = location;
        this.status = status;
        this.startTime = startTime;
        this.maintenanceUserID = maintenanceUserID;
        this.acceptTime = acceptTime;
        this.maintenanceContent = maintenanceContent;
        this.endTime = endTime;
    }

    public MaintenanceInfo(String maintenanceSN, int areaID, int equipmentID, int reportUserID, String reportContent, int imageURL, int location, char status, String startTime, int maintenanceUserID, String acceptTime, String maintenanceContent, String endTime) {
        this.maintenanceSN = maintenanceSN;
        this.areaID = areaID;
        this.equipmentID = equipmentID;
        this.reportUserID = reportUserID;
        this.reportContent = reportContent;
        this.imageURL = imageURL;
        this.location = location;
        this.status = status;
        this.startTime = startTime;
        this.maintenanceUserID = maintenanceUserID;
        this.acceptTime = acceptTime;
        this.maintenanceContent = maintenanceContent;
        this.endTime = endTime;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setMaintenanceSN(String maintenanceSN) {
        this.maintenanceSN = maintenanceSN;
    }

    public void setAreaID(int areaID) {
        this.areaID = areaID;
    }

    public void setEquipmentID(int equipmentID) {
        this.equipmentID = equipmentID;
    }

    public void setReportUserID(int reportUserID) {
        this.reportUserID = reportUserID;
    }

    public void setReportContent(String reportContent) {
        this.reportContent = reportContent;
    }

    public void setImageURL(int imageURL) {
        this.imageURL = imageURL;
    }

    public void setLocation(int location) {
        this.location = location;
    }

    public void setStatus(char status) {
        this.status = status;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public void setMaintenanceUserID(int maintenanceUserID) {
        this.maintenanceUserID = maintenanceUserID;
    }

    public void setAcceptTime(String acceptTime) {
        this.acceptTime = acceptTime;
    }

    public void setMaintenanceContent(String maintenanceContent) {
        this.maintenanceContent = maintenanceContent;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public int getId() {
        return id;
    }

    public String getMaintenanceSN() {
        return maintenanceSN;
    }

    public int getAreaID() {
        return areaID;
    }

    public int getEquipmentID() {
        return equipmentID;
    }

    public int getReportUserID() {
        return reportUserID;
    }

    public String getReportContent() {
        return reportContent;
    }

    public int getImageURL() {
        return imageURL;
    }

    public int getLocation() {
        return location;
    }

    public char getStatus() {
        return status;
    }

    public String getStartTime() {
        return startTime;
    }

    public int getMaintenanceUserID() {
        return maintenanceUserID;
    }

    public String getAcceptTime() {
        return acceptTime;
    }

    public String getMaintenanceContent() {
        return maintenanceContent;
    }

    public String getEndTime() {
        return endTime;
    }
}
